<template>
    <div class="main-prob">
        这里是主项目的prob组件-
        --route.params.path---->{{ route.params.path }}
        <WujieVue
            width="1000px"
            height="500px"
            name="prob"
            :url="openLink"
            v-if="!!openLink"
        />
    </div>
</template>
<script setup lang="ts">
import { onMounted, watch, ref } from 'vue'
import { useRoute } from 'vue-router'
const route = useRoute()
const openLink = ref('')
watch(
    () => route.fullPath,
    () => {
        console.log('route.fullPath: prob', route.fullPath);
        openLink.value = 'http://localhost:4200/prob/' + route.params.path
    },
    { immediate: true }
)
</script>
<style lang="css">
.main-prob {
    border: 1px solid #000;
    overflow: auto;
}
</style>
